<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Message/index')}">自动回复管理</a></li>
			<li><a href="{:U('Message/add')}">添加自动回复</a></li>
		</ul>
		
		<form class="js-ajax-form" action="" method="post">
			<div class="table-actions">
				<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Message/delete')}" data-subcheck="true" data-msg="您确定删除吗？">{:L('DELETE')}</button>
			</div>
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>	
						<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
						<th width="50">ID</th>
						<th>关键词</th>
						<th width="80">消息类型</th>
						<th width="180">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
				<foreach name="wx_message" item="vo">
					<tr>
						<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo['id']}" title="ID:{$vo['id']}"></td>
						<td>{$vo['id']}</td>
						<td>{$vo['name']}</td>
						<td><if condition="$vo['type'] eq 1">文本消息<else/>图文消息</if></td>
						<td>
							<a href="{:U('Message/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> | 
							<a href="{:U('Message/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
						</td>
					</tr>	
					</foreach>
				</tbody>
				
			</table>
			
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		$(function() {

			$("#navcid_select").change(function() {
				$("#mainform").submit();
			});

		});
	</script>
</body>
</html>